<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%String path = request.getContextPath();%>
<form id="pagerForm" method="post" action="<%=path %>/mobileMessage/listMobileMessage.action">
	<input type="hidden" name="pageRequest" value="1" />
	<input type="hidden" name="pageNum" value="${paginator.pageIndex}" />
	<input type="hidden" name="numPerPage" value="${paginator.pageSize}" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" rel="pagerForm" action="<%=path %>/mobileMessage/listMobileMessage.action" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label style="text-align: right;">用户：</label>
				<input type="text" name="MobileMessageVO.loginId" value='<s:property value="MobileMessageVO.loginId" />'/>
			</li>
			<li>
				<label style="text-align: right;">内容：</label>
				<input type="text" name="MobileMessageVO.content" value='<s:property value="MobileMessageVO.content" />'/>
			</li>
			<li style="width:450px">
				<label style="text-align: right;">获得时间：</label>
				从<input type="text" name="MobileMessageVO.gtcreateTime" value='<s:date name='MobileMessageVO.gtcreateTime' format="yyyy-MM-dd HH:mm:ss"/>' dateFmt="yyyy-MM-dd HH:mm:ss" class="date" readonly="readonly" size="19"/>
				到<input type="text" name="MobileMessageVO.ltcreateTime" value='<s:date name='MobileMessageVO.ltcreateTime' format="yyyy-MM-dd HH:mm:ss"/>' dateFmt="yyyy-MM-dd HH:mm:ss" class="date" readonly="readonly" size="19"/>
			</li>
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<table class="table" width="100%" layoutH="112">
		<thead>
			<tr>
				<th>用户</th>
				<th width="80%">留言内容</th>
				<th>留言时间</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="mobileMessageList" id="mobileMessage" status="st">
				<tr target="sid_user" rel="<s:property value="id" />">
             <td><s:property value="registerUser.loginId" /></td>	
             <td><s:property value="content" /></td>	
			 <td><s:date name="createTime" format="yyyy-MM-dd HH:mm:ss" /></td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
				<span>显示</span>
				<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
					<option value="15" <c:if test="${paginator.pageSize==15}">selected='selected'</c:if> >15</option>
					<option value="30" <c:if test="${paginator.pageSize==30}">selected='selected'</c:if> >30</option>
					<option value="50" <c:if test="${paginator.pageSize==50}">selected='selected'</c:if> >50</option>
					<option value="100" <c:if test="${paginator.pageSize==100}">selected='selected'</c:if> >100</option>
					<option value="200" <c:if test="${paginator.pageSize==200}">selected='selected'</c:if> >200</option>
				</select>
				<span>条，共${paginator.totalCount}条</span>
			</div>
			<div class="pagination" targetType="navTab" totalCount="${paginator.totalCount}" 
				numPerPage="${paginator.pageSize}" pageNumShown="10" currentPage="${paginator.pageIndex}"></div>

	</div>
</div>